package day629;

public class interview01 {
    //判断== 和 equals 的区别
    public static void main(String[] args) {
        String name1 = "lwd";
        String name2 = "lwd";
        String s = new String("lwd");

        System.out.println(name1 == name2);
        System.out.println(name1 == s);
        System.out.println(name1.equals(name2));
        System.out.println(name1.equals(s));
    }
}
